package ru.amse.tsyganov.jumleditor.view.lines;

import ru.amse.tsyganov.jumleditor.view.ConnectionPoint;

public class HorizontalToConnectionPointLine extends ToConnectionPointLine {
	
	public HorizontalToConnectionPointLine(ConnectionPoint p, int cord) {
		super(p, cord);
	}

	public int getX1() {
		return getCoordinate();
	}

	public int getY1() {
		return getConnectionPoint().getCpY();
	}
	
	public void setX1(int x1) {
		setCoordinate(x1);
	}
	
	public void setY1(int y1) {
		throw new UnsupportedOperationException();
	}

	public boolean isHorizontal() {
		return true;
	}

}
